home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / BARNET / COMPILER / SATHER / !Sather / Library / Views / Views.sam < prev   
Text File  |  1997-03-08  |  2KB  |  36 lines

  1. -- Copyright (C) International Computer Science Institute, 1994.  COPYRIGHT  --
  2. -- NOTICE: This code is provided "AS IS" WITHOUT ANY WARRANTY and is subject --
  3. -- to the terms of the SATHER LIBRARY GENERAL PUBLIC LICENSE contained in    --
  4. -- the file "Doc/License" of the Sather distribution.  The license is also   --
  5. -- available from ICSI, 1947 Center St., Suite 600, Berkeley CA 94704, USA.  --
  6. --------> Please email comments to "sather-bugs@icsi.berkeley.edu". <----------
  7.  
  8. -- VIEW CLASSES
  9. -- Classes: 
  10. --      $OBJ_VIEW      - abstract view (object: $OB, name: STR)
  11. --           OBJ_VIEW  - Composite view
  12. --                       create(name: STR, obj: $OB), 
  13. --                       horizontal,vertical: SAME
  14. --                       add_component(sub_object: $OBJ_VIEW)
  15. --           ATTR_VIEW - Leaf view, pointer to another (sub)view
  16. --                       create(name:STR,other_obj:$OB)
  17. --
  18. --      VIEW_HOLDER   - Collection of views for conversion to other forms
  19. --                       (not a real $DIGRAPH, since it extends the
  20. --                       abstraction in many ways)
  21. --                       create: SAME, add(v: $OBJ_VIEW)
  22. --      VIEW_TO_DOT    - Convert a view holder to dotty form
  23. --                       create(v: VIEW_HOLDER)
  24. --                       add_node(v: $OBJ_VIEW) - extend view
  25. --                       print($OSTREAM)
  26. -------------------------------------------------------------------
  27. view.sa -has view.sa 
  28.         $OBJ_VIEW OBJ_VIEW ATTR_VIEW VIEW_HOLDER
  29. view_todot.sa -has view_todot.sa
  30.         VIEW_TO_DOT
  31. test/view.sa    -has test/view.sa
  32.         TEST_VIEW_TO_DOT
  33.  
  34.  
  35.         
  36.